package model;

public class Batiment extends Carte{
	
	/*
	 *  j'aiprefere stocker le niveau de batiment dans joueur, ca me parait plus logiquee vu que les cartes ne donnent qu'un niveau a chaque fois
	 */
	
	//type de batiment: caserne, usine, aeroport, ville
	private String type;
	
	//Pv du batiment
	private int pv;
	
	//Defense du batiment
	private int defence;
	
	//niveau batiment
	private int niveau;
	
	//Points de construction restant
	private int pointConstruction;
	
	public Batiment( String type ){
		this.type=type;
		this.setEtat("NULL");
		this.pv=10;
		this.defence=4;
		this.setType("batiment");
		Carte.setId_carte(this.getId_carte()+1);
		this.niveau=1;
		this.pointConstruction=this.niveau;
		super.addCarte();
	}


	public String getType() {
		return type;
	}


	public void setType(String type) {
		this.type = type;
	}


	public int getPv() {
		return pv;
	}


	public void setPv(int pv) {
		this.pv = pv;
	}


	public int getDefence() {
		return defence;
	}


	public void setDefence(int defence) {
		this.defence = defence;
	}
}
